<?php $view = $this; if(1!=1)$view = new View(); ?>
<ul class="p">
<?php $savingtypename = '-';?>
<?php foreach($view->Account as $k=>$v):?>
<?php if($savingtypename != $v['SavingtypeName']):$savingtypename = $v['SavingtypeName'];?>
</ul><ul class="p">
<li class="savingtypename"><?php echo empty($savingtypename) ? '其他' : $savingtypename;?></li>
<?php endif;?>
<li><a href="index.php?m=record&a=rlist&aid=<?php echo $v['AID']?>"><?php echo $v['AccountName']?>（<?php echo $v['Balance']?>）</a></li>
<?php endforeach;?>
</ul>